{% extends 'base.html' %}
{% block title %}
    <title>UploadFile</title>
{% endblock %}
<style>
    form{

    }
</style>
{% block content %}
    {% for get_flashed_message in get_flashed_messages() %}
        <p>{{ get_flashed_message }}</p>
    {% endfor %}
    <form method="post" enctype="multipart/form-data">
        {{ forms.csrf_token }}
        {{ forms.photos.label(for="exampleInputFile") }}
        {{ forms.photos(id="exampleInputFile") }}
    <p class="help-block">选择需要上传的图片文件</p>
        {{ forms.submit }}
        {% for form in forms.photos.errors %}
            <p style="color: red">{{ form }}</p>
        {% endfor %}
    </form>
{% endblock %}

